package edu.nf.relaxenjoy.domain.dto;

import edu.nf.relaxenjoy.common.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author zhu
 * @date 2024-12-20
 */
@Data
@ApiModel(value = "搜索记录")
public class SearchRecordDTO implements Serializable {
    @NotNull(message = "uid不能为空", groups = DefaultGroup.class)
    private String uid;

    @NotBlank(message = "关键词不能为空", groups = DefaultGroup.class )
    private String keyword;
}
